package com.cx.mapper;

import com.cx.pojo.Posting;
import com.cx.pojo.PostingExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PostingMapper {
    int countByExample(PostingExample example);

    int deleteByExample(PostingExample example);

    int deleteByPrimaryKey(Integer postingId);

    int insert(Posting record);

    int insertSelective(Posting record);

    List<Posting> selectByExampleWithBLOBs(PostingExample example);

    List<Posting> selectByExample(PostingExample example);

    Posting selectByPrimaryKey(Integer postingId);

    int updateByExampleSelective(@Param("record") Posting record, @Param("example") PostingExample example);

    int updateByExampleWithBLOBs(@Param("record") Posting record, @Param("example") PostingExample example);

    int updateByExample(@Param("record") Posting record, @Param("example") PostingExample example);

    int updateByPrimaryKeySelective(Posting record);

    int updateByPrimaryKeyWithBLOBs(Posting record);

    int updateByPrimaryKey(Posting record);
}